package cn.ctodb.mall.config.service.mapper;

import cn.ctodb.mall.config.domain.*;
import cn.ctodb.mall.config.service.dto.ConfigDTO;

import org.mapstruct.*;
import java.util.List;

/**
 * Mapper for the entity Config and its DTO ConfigDTO.
 */
@Mapper(componentModel = "spring", uses = {})
public interface ConfigMapper {

    ConfigDTO configToConfigDTO(Config config);

    List<ConfigDTO> configsToConfigDTOs(List<Config> configs);

    Config configDTOToConfig(ConfigDTO configDTO);

    List<Config> configDTOsToConfigs(List<ConfigDTO> configDTOs);
    /**
     * generating the fromId for all mappers if the databaseType is sql, as the class has relationship to it might need it, instead of
     * creating a new attribute to know if the entity has any relationship from some other entity
     *
     * @param id id of the entity
     * @return the entity instance
     */
     

}
